﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDShop.Configuration;
using BDShop.Entities;
using BDShop.Framework;
using BDShop.Framework.Caching;

namespace BDShop.Business.Cache
{
   public class ProductCategoryCache : BaseCache<List<ProductCategory>>
    {
        public ProductCategoryCache()
            : base(BDShopConfiguration.Cache.CacheProductCategory, ProductCategoryService.GetListProductCategoryCacheModel, true, CacheManager.GetFilePathFO(CacheEnum.product))
        {
            
        }

        public static ProductCategoryCache Instance
        {
            get
            {
                return SingletonBase<ProductCategoryCache>.Instance;
            }
        }

    }
}
